﻿using System;

namespace Salary.Domain
{
    public class Timesheet : Entity
    {
        private Employee _employee;
        private DateTime _date;
        private decimal _hours;
        private bool _overWork;

        #region Constructor

        protected Timesheet()
        {
            
        }
        public Timesheet(Employee employee, DateTime date, decimal hours, bool overWork)
        {
            _employee = employee;
            _date = date;
            _hours = hours;
            _overWork = overWork;
        }
        #endregion

        #region Properties

        public virtual Employee Employee
        {
            get { return _employee; }
            set { _employee = value; }
        }
        public virtual DateTime Date
        {
            get { return _date; }
            set { _date = value; }
        }
        public virtual decimal Hours
        {
            get { return _hours; }
            set { _hours = value; }
        }
        public virtual bool OverWork
        {
            get { return _overWork; }
            set { _overWork = value; }
        }
        #endregion
    }
}
